package extendsexamp;

/**
 * @author Administrator
 * 子类：佳能打印机，继承了打印机类
 * １，继承：open() print() close()
 * 2, 新增：clean()
 * 3,重写：close()
 */
public class CanonPrinter extends  Printer{
    void clean(){
        System.out.println("清除");
    }
    @Override
    void close(){
        clean();
        System.out.println("关闭");
    }
}
